<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css"></style>
</head>
<body>
    <h1>JS 数组</h1>
    <hr>

    <script>
        var list = [];

        // list[] = 55; // NO
        list[0] = 55;
        list[10] = 55;
        list['name'] = '静静'; // 没有关联

        console.log(list);
        console.log(typeof list);
        console.log(list.constructor);
        console.log(list.length);
        console.log(list[5]); // undefined

        // 多维数组
        var arr = [
            [1,5,6],
            ['a','b','d'],
            [true, false, [1,6,9]]
        ];
        console.log(arr);
        console.table(arr);
    </script>
</body>
</html>